package com.ruoyi.student.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.student.api.factory.StudentServicefallbackFactory;
import com.ruoyi.student.domain.TStudent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "studentService", path = "studentMessage",value = ServiceNameConstants.STUDENT_SERVICE, fallbackFactory = StudentServicefallbackFactory.class)
public interface StudentService {
    @GetMapping("/getStudent/{name}")
    AjaxResult findStudentByName(@PathVariable("name") String name);
}
